package com.cling.springcloud.servceImpl;

import com.cling.springcloud.dao.PaymentDao;
import com.cling.springcloud.entity.Payment;
import com.cling.springcloud.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @ Cling
 * @Create 2020/7/18 16:04
 **/

@Service
public class PaymentServiceImpl implements PaymentService {
    @Resource
    private PaymentDao paymentDao;

    @Override
    public int add(Payment payment) {
        return paymentDao.add(payment);
    }

    @Override
    public Payment getPaymentByID(Long id) {
        return paymentDao.getPaymentByID(id);
    }
}
